//
//  MVVMViewModel.h
//  Demo_MVVM_RAC
//
//  Created by 陈冰 on 2020/3/8.
//  Copyright © 2020 ChenBing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MVVMModel.h"
#import "MVVMTableViewCell.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^SuccessBlock)(id data);
typedef void(^FailBlock)(id data);

/// block 双向绑定
@interface MVVMViewModel : NSObject <MVVMTableViewCellDelegate>

- (instancetype)initWithSuccessBlock:(SuccessBlock)aSuccessBlock failBlock:(FailBlock)aFailBlock;

@property (nonatomic, strong) NSMutableArray *dataArray;
- (void)loadData;

@end

NS_ASSUME_NONNULL_END
